package Imp.clients;

import entity.Item;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "item-thirdService")
public interface openFeignThird {

    @GetMapping("/third/api/get")
    Item getItem(@RequestParam(value = "itemid") Integer id);

    @GetMapping("/third/api/get/fallbackStock")
    void getFallbackStock(@RequestParam(value = "itemid") Integer itemid, @RequestParam(value =
            "num") Integer num);
}
